﻿<?php
include 'include/setup.php';

$set = new setup();

if(!isset($_SESSION['user_login'])) { // έλεγχος αν έχει συνδεθεί ο χρήστης
    $set->redirect("http://192.185.116.17/~wwwmsc/administrator/index.php");
}
//if($_SESSION['userlevel'] != 1) {
//    $set->redirect("http://192.185.116.17/~wwwmsc/administrator/index.php");
//}

include 'include/head.php';
include 'include/menu.php';
?>

<head>
    <link href="css/admin_style.css" rel="stylesheet" type="text/css" />
</head>

<?php
$searchterm_fname = $_POST['searchterm_fname'];
$searchterm_lname = $_POST['searchterm_lname'];
$searchterm_location = $_POST['searchterm_location'];
$searchterm_role = $_POST['searchterm_role'];

$username = $_POST['username'];
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$gender = $_POST['gender'];
$role = $_POST['searchterm_role'];
$location = $_POST['location'];
$phone1 = $_POST['phone1'];
$phone2 = $_POST['phone2'];
$email = $_POST['email'];
$website = $_POST['website'];

$user_id = $_GET['id'];
$action = $_GET['action'];

?>

<body class="background">

<?php

if(!isset($user_id)&&!isset($action)) // αν δεν έχουν επιλεγεί χρήστες και actions
{
    include 'include/user/user_search.php';
    include 'include/user/user_results.php';
}

else
{
    include 'include/user/user_more.php';
}
?>

</body>